CC = g++
CFLAGS = -Wall -c -Iqueue -g 
LFLAGS = -Wall -g -lrt
VPATH=./queue 

prog: graph.o edge.o queue.o heap_node.o algorithms.cpp
	$(CC) $(LFLAGS) -o prog graph.o edge.o queue.o heap_node.o main.cpp

graph.o: edge.h queue.h graph.h graph.cpp 
	$(CC) $(CFLAGS) -o graph.o graph.cpp 

edge.o: edge.h edge.cpp 
	$(CC) $(CFLAGS) -o edge.o edge.cpp 

queue.o: heap_node.h queue.h queue.cpp 
	$(CC) $(CFLAGS) -o queue.o queue/queue.cpp

heap_node.o: heap_node.h heap_node.cpp 
	$(CC) $(CFLAGS) -o heap_node.o queue/heap_node.cpp
	
clean: 
	rm *.o
